﻿
var mySwiper = new Swiper('.swiper-container', {
    speed: 750,
    autoplay: 30000,
    loop: true,
    grabCursor: true
});

$(document).ready(function () {
    $("[data-action='number']").click(function () {
        var t = $(this).text();
        var numberModel = $("#NumModel");
        numberModel.val(numberModel.val() + t.toString());
        $("#Error").text("");
    });
    $("[data-action='larr']").click(function () {
        var numberModel = $("#NumModel");
        var nm = numberModel.val();
        var l = nm.length;
        numberModel.val(nm.substring(0, l - 1));
    });
    $("[data-action='clear']").click(function () {
        $("#NumModel").val("");
    });
    
    mySwiper.swipeNext();
});
